package sv.com.renacempleo.dto.ctg;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table (name = "ctg_departamento")
public class CtgDepartamento implements Serializable{

	private static final long serialVersionUID = 1137221945149503087L;
	@Id
	@Column(name = "ctg_dep_id")
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long ctgDepartamentoId;
	@Column(name = "ctg_dep_nombre", nullable = false, length = 100)
	private String ctgDepartamentoNombre;
	@Column(name = "ctg_dep_activo", nullable = false, length = 1)
	private String ctgDepartamentoActivo = "1";
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ctg_pais_id", nullable = false)
	private CtgCatalogo ctgPais;
	
	public Long getCtgDepartamentoId() {
		return ctgDepartamentoId;
	}
	public void setCtgDepartamentoId(Long ctgDepartamentoId) {
		this.ctgDepartamentoId = ctgDepartamentoId;
	}
	public String getCtgDepartamentoNombre() {
		return ctgDepartamentoNombre;
	}
	public void setCtgDepartamentoNombre(String ctgDepartamentoNombre) {
		this.ctgDepartamentoNombre = ctgDepartamentoNombre;
	}
	public String getCtgDepartamentoActivo() {
		return ctgDepartamentoActivo;
	}
	public void setCtgDepartamentoActivo(String ctgDepartamentoActivo) {
		this.ctgDepartamentoActivo = ctgDepartamentoActivo;
	}
	public CtgCatalogo getCtgPais() {
		return ctgPais;
	}
	public void setCtgPais(CtgCatalogo ctgPais) {
		this.ctgPais = ctgPais;
	}
	

}
